package com.jingyanzi.privilege.domain;

import java.util.List;

public class OrgDO extends BaseDO implements java.io.Serializable {
	
	/**
	 * baseDO里面
	 * 
	 *  id 数据库主键
	 *  code 唯一编码
	 *  pCode 父级编码
	 *  sortNum 排序值 
	 * 
	 */
	
	private static final long serialVersionUID = -2327868490473587374L;
	/**
	 *  机构名称
	 */
	private String nameCode;
	
	/**
	 * 父机构ID
	 */
	private Integer orgId;

	/**
	 * 图标
	 */
    private String icon;
    
    
    /**
     * 夫机构名称
     */
    private String orgName;

    /**
     * 机构类型 1：公司 2：部门
     */
    private Integer type;

    /**
     * 机构描述
     */
    private String describes;

    /**
     * 是否是叶子节点的机构
     */
    private Integer isNode;
    
    /**
     * 机构类型的字符串名称（获取时服务器端负责处理）
     */
    private String typeName;
   
    /**
     * 父机构的DO对象
     */
    private OrgDO orgDO;
    
  
	/**
     * 子机构的列表
     */
    private List<OrgDO> children;
    
	public String getNameCode() {
		return nameCode;
	}

	public void setNameCode(String namecode) {
		this.nameCode = namecode;
	}

	public String getIcon() {
		return icon;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public Integer getIsNode() {
		return isNode;
	}

	public void setIsNode(Integer isNode) {
		this.isNode = isNode;
	}

	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public OrgDO getOrgDO() {
		return orgDO;
	}

	public void setOrgDO(OrgDO orgDO) {
		this.orgDO = orgDO;
	}

	public List<OrgDO> getChildren() {
		return children;
	}

	public void setChildren(List<OrgDO> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "OrgDO [nameCode=" + nameCode + ", orgId=" + orgId + ", icon=" + icon + ", orgName=" + orgName
				+ ", type=" + type + ", describes=" + describes + ", isNode=" + isNode + ", typeName=" + typeName
				+ ", orgDO=" + orgDO + ", children=" + children + "]";
	}

}
